﻿using Abp.Domain.Entities;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace CPPProject.CppModel
{
    /// <summary>
    /// 合同管理
    /// </summary>
    [Table("T_Biz_Contract")]
    public class T_Biz_Contract : Entity<Guid>
    {
        /// <summary>
        /// 公司ID
        /// </summary>
        [MaxLength(100)]
        public string NCompanyID { get; set; }
        /// <summary>
        /// 合同编号
        /// </summary>
        [MaxLength(100)]
        public string CCode { get; set; }
        /// <summary>
        /// 业务类型（0期租1次租2贸易）
        /// </summary>
        [MaxLength(100)]
        public string IBizType { get; set; }
        /// <summary>
        /// 客户ID
        /// </summary>
        [MaxLength(300)]
        public string CCusCode { get; set; }
        /// <summary>
        /// 收货地址
        /// </summary>
        [MaxLength(300)]
        public string CAddress { get; set; }
        /// <summary>
        /// 结算方式（月结，季度结算，年度结算）
        /// </summary>
        [MaxLength(300)]
        public string CPayments { get; set; }
        /// <summary>
        /// 付款账期
        /// </summary>
        [MaxLength(300)]
        public string NPaymentPeriod { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(300)]
        public string CRemark { get; set; }
        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime DStartDate { get; set; }
        /// <summary>
        /// 结束日期
        /// </summary>
        public DateTime DEndDate { get; set; }
        /// <summary>
        /// 对账单日
        /// </summary>
        public DateTime DReconciliationDate { get; set; }
        /// <summary>
        /// 状态（0未执行1执行中2已关闭）
        /// </summary>
        [MaxLength(300)]
        public string IStatus { get; set; }
        /// <summary>
        /// 项目路线
        /// </summary>
        [MaxLength(300)]
        public string CProjectName { get; set; }
        /// <summary>
        /// 租赁天数
        /// </summary>
        [MaxLength(300)]
        public string NDays { get; set; }
        /// <summary>
        /// 预警天数
        /// </summary>
        [MaxLength(300)]
        public string WarningDays { get; set; }

    }
}
